package org.dingfugui.triple;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by QQ on 2015/3/25.
 */
public class FooServiceImpl implements FooService {

    AtomicInteger seq = new AtomicInteger();

    @Override
    public String[] foo(int i, String s) {

        System.out.println("-------");
        System.out.println(i + "-" + s);
        System.out.println("-------");

        return new String[]{"result", seq.getAndIncrement() + ""};
    }


    public static void main(String[] args) {
        new FooServiceImpl().foo(1, "a");
    }
}
